<template>
  <div class="profile-container">
    <div class="sidebar">
      <h3 class="sidebar-title">导航菜单</h3>
      <router-link to="/student/list1" class="nav-link">信息1</router-link>
      <router-link to="/student/list2" class="nav-link">信息2</router-link>
    </div>
    <div class="main-content">
      <div class="profile-card">
        <h1>个人信息页面</h1>
        <div class="profile-info">
          <p>卢震宇</p>
          <p>24219141112</p>
        </div>
      </div>
      <router-view class="router-content"/>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Profile'
}
</script>

<style scoped>
.profile-container {
  display: flex;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.sidebar {
  width: 250px;
  background: linear-gradient(135deg, #42b983, #35495e);
  padding: 30px 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-title {
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-link {
  display: block;
  padding: 12px 15px;
  margin-bottom: 8px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-link.router-link-exact-active {
  background-color: rgba(255,255,255,0.2);
  font-weight: bold;
}

.main-content {
  flex: 1;
  padding: 30px;
}

.profile-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
}

.profile-info {
  margin-top: 20px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.profile-info p {
  margin: 10px 0;
  color: #333;
}

.router-content {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
</style>